package com.ssx.cloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @Package com.ssx.cloud.controller
 * @ClassName PaymentController
 * @Copyright: Copyright (c) 2020
 * @Date 2020/11/20 15:02
 * @Company www.sudaoxi.com.cn
 * @Author 苏道羲
 * @Version 1.0
 * @Description
 */
@RestController
public class PaymentController {
    @Value("${server.port}")
    private String serverPort;

    @RequestMapping("/consul")
    public String zk(){
        return "springcloud with comsul:"+serverPort+"\t"+ UUID.randomUUID().toString();
    }
}
